<ui:composition xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:app="http://java.sun.com/jsf/composite/app"
                xmlns:ds="http://deltaset.org/deltaset-faces"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:c="http://java.sun.com/jsp/jstl/core" >
        
        <c:set target="#{viewScope}" property="addressPageHelper" value="#{pageHelper}"/>
        <ds:pagedDataTable            
            pageHelper="#{viewScope.addressPageHelper}"
            pageParamName="page">
            <h:column>
                <f:facet name="header">
                    <h:outputText value="#{addressMsg['city']}"/>
                </f:facet>
                <h:outputText value="#{item.city}"/>
            </h:column>
            <h:column>
                <f:facet name="header">
                    <h:outputText value="#{addressMsg['street']}"/>
                </f:facet>
                <h:outputText value="#{item.street}"/>
            </h:column>
            <h:column>
                <f:facet name="header">
                    <h:outputText value="#{addressMsg['zip']}"/>
                </f:facet>
                <h:outputText value="#{item.zip}"/>
            </h:column>
            <h:column>
                <f:facet name="header">
                    <h:outputText value="#{addressMsg['state']}"/>
                </f:facet>
                <h:outputText value="#{item.state}"/>
            </h:column>
            <h:column>
                <f:facet name="header">
                    <h:outputText value="#{addressMsg['longtitude']}"/>
                </f:facet>
                <h:outputText value="#{item.longtitude}"/>
            </h:column>
            <h:column>
                <f:facet name="header">
                    <h:outputText value="#{addressMsg['latitude']}"/>
                </f:facet>
                <h:outputText value="#{item.latitude}"/>
            </h:column>

            <h:column>
                <f:facet name="header">
                    <h:outputText escape="false" value=""/>
                </f:facet>
                <ds:rowButtons
                    outcomeDetail="/secured/address/detail"
                    outcomeEdit="/secured/address/form"
                    deleteListener="#{addressBean.deleteAndReset(item,viewScope.addressPageHelper)}"
                    modelIdParamName="addressId"
                    modelId="#{item.id}"/>                
            </h:column>           
        </ds:pagedDataTable>
</ui:composition>